[INFO] cloning repository https://github.com/dipayancodes/snake-game-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dipayancodes/snake-game-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdipayancodes%2Fsnake-game-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdipayancodes%2Fsnake-game-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b0755da7426a2436b6683047b43f511e4633f872
[INFO] checking dipayancodes/snake-game-rust against try#a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 for pr-145770
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdipayancodes%2Fsnake-game-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dipayancodes/snake-game-rust
[INFO] finished tweaking git repo https://github.com/dipayancodes/snake-game-rust
[INFO] tweaked toml for git repo https://github.com/dipayancodes/snake-game-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dipayancodes/snake-game-rust on toolchain a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dipayancodes/snake-game-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e4da0ad81b1b8d3b302038ff177f822046f229854120611396dcb75396126329
[INFO] running `Command { std: "docker" "start" "-a" "e4da0ad81b1b8d3b302038ff177f822046f229854120611396dcb75396126329", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e4da0ad81b1b8d3b302038ff177f822046f229854120611396dcb75396126329", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e4da0ad81b1b8d3b302038ff177f822046f229854120611396dcb75396126329", kill_on_drop: false }`
[INFO] [stdout] e4da0ad81b1b8d3b302038ff177f822046f229854120611396dcb75396126329
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 36dfeb431b419dedec7d16d50f21bb7b9ef340508754bad74a4061201bc3c048
[INFO] running `Command { std: "docker" "start" "-a" "36dfeb431b419dedec7d16d50f21bb7b9ef340508754bad74a4061201bc3c048", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling signal-hook v0.3.16
[INFO] [stderr]    Compiling parking_lot_core v0.9.8
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]     Checking log v0.4.19
[INFO] [stderr]     Checking smallvec v1.11.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]    Compiling lock_api v0.4.10
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]     Checking getrandom v0.2.10
[INFO] [stderr]     Checking mio v0.8.8
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking signal-hook-mio v0.2.3
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking crossterm v0.26.1
[INFO] [stderr]     Checking snake_game_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `ClearType` and `KeyEvent`
[INFO] [stdout]  --> src/main.rs:7:28
[INFO] [stdout]   |
[INFO] [stdout] 7 |     event::{self, KeyCode, KeyEvent},
[INFO] [stdout]   |                            ^^^^^^^^
[INFO] [stdout] 8 |     execute,
[INFO] [stdout] 9 |     terminal::{self, ClearType},
[INFO] [stdout]   |                      ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:69:16
[INFO] [stdout]    |
[INFO] [stdout] 69 |               if (
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 70 | |                 new_head.0 == 0 || new_head.0 == SCREEN_HEIGHT - 1 ||
[INFO] [stdout]    | |________________^
[INFO] [stdout] 71 |                   new_head.1 == 0 || new_head.1 == SCREEN_WIDTH - 1 ||
[INFO] [stdout] 72 |                   snake[1..].contains(&new_head)
[INFO] [stdout]    |  _______________________________________________^
[INFO] [stdout] 73 | |             ) {
[INFO] [stdout]    | |_____________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 69 ~             if new_head.0 == 0 || new_head.0 == SCREEN_HEIGHT - 1 ||
[INFO] [stdout] 70 |                 new_head.1 == 0 || new_head.1 == SCREEN_WIDTH - 1 ||
[INFO] [stdout] 71 ~                 snake[1..].contains(&new_head) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ClearType` and `KeyEvent`
[INFO] [stdout]  --> src/main.rs:7:28
[INFO] [stdout]   |
[INFO] [stdout] 7 |     event::{self, KeyCode, KeyEvent},
[INFO] [stdout]   |                            ^^^^^^^^
[INFO] [stdout] 8 |     execute,
[INFO] [stdout] 9 |     terminal::{self, ClearType},
[INFO] [stdout]   |                      ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:69:16
[INFO] [stdout]    |
[INFO] [stdout] 69 |               if (
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 70 | |                 new_head.0 == 0 || new_head.0 == SCREEN_HEIGHT - 1 ||
[INFO] [stdout]    | |________________^
[INFO] [stdout] 71 |                   new_head.1 == 0 || new_head.1 == SCREEN_WIDTH - 1 ||
[INFO] [stdout] 72 |                   snake[1..].contains(&new_head)
[INFO] [stdout]    |  _______________________________________________^
[INFO] [stdout] 73 | |             ) {
[INFO] [stdout]    | |_____________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 69 ~             if new_head.0 == 0 || new_head.0 == SCREEN_HEIGHT - 1 ||
[INFO] [stdout] 70 |                 new_head.1 == 0 || new_head.1 == SCREEN_WIDTH - 1 ||
[INFO] [stdout] 71 ~                 snake[1..].contains(&new_head) {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/main.rs:1:23
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::{stdout, Write};
[INFO] [stdout]   |                       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tail`
[INFO] [stdout]   --> src/main.rs:87:21
[INFO] [stdout]    |
[INFO] [stdout] 87 |                 let tail = snake.pop().unwrap();
[INFO] [stdout]    |                     ^^^^ help: if this is intentional, prefix it with an underscore: `_tail`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/main.rs:1:23
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::{stdout, Write};
[INFO] [stdout]   |                       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tail`
[INFO] [stdout]   --> src/main.rs:87:21
[INFO] [stdout]    |
[INFO] [stdout] 87 |                 let tail = snake.pop().unwrap();
[INFO] [stdout]    |                     ^^^^ help: if this is intentional, prefix it with an underscore: `_tail`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.66s
[INFO] running `Command { std: "docker" "inspect" "36dfeb431b419dedec7d16d50f21bb7b9ef340508754bad74a4061201bc3c048", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "36dfeb431b419dedec7d16d50f21bb7b9ef340508754bad74a4061201bc3c048", kill_on_drop: false }`
[INFO] [stdout] 36dfeb431b419dedec7d16d50f21bb7b9ef340508754bad74a4061201bc3c048
